package com.yueqian.system.converter;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.yueqian.system.entity.Menu;
import com.yueqian.system.vo.req.MenuReqVO;
import com.yueqian.system.vo.res.MenuResVO;

@Mapper
public interface MenuConvert {

	MenuConvert INSTANCE = Mappers.getMapper(MenuConvert.class);

	MenuResVO toRes(Menu entity);

	MenuReqVO toVO(Menu entity);

	Menu toEntity(MenuReqVO menuReqVO);

	List<MenuResVO> toDtoList(List<Menu> entities);

	List<Menu> toEntities(List<MenuResVO> dtos);

	List<MenuResVO> toResList(List<Menu> menuList);

}
